function gets(pageNum) {
    var a=$("#po_number").val();
    var b=$("#po_name").val();
    var c=$("#po_state").val();
    var d=$("#podi_hid").val();
    var r=$("#supplier").val();


    var pageN = pageNum;

    $.ajax({
            url: '/myspringboot/Settleaccounts/findjiesuan',
            type: 'post',
            dataType: "json",
            data:{
                ponumber:a,
                poname:b,
                postate:c,
                podihid:d,
                ssupplier:r,
                pageNum:pageN
            },

            success:function(result) {
                var list = result.data.list;
                yibu(result.data.pages,result.data.pageNum);
                $(".a").empty();
                for (i=0;i<list.length;i++) {
                    //序号
                    var id = list[i].sid;
                    //结算单编号
                    var bianhuao = list[i].snumber;
                    //结算单名称
                    var name = list[i].sname;
                    //状态
                    var state = list[i].sstate;
                    if (state==0){
                       var state1 = "已入库未结算";
                    } else {
                        state1 ="已结算";
                    }
                    //医院
                    var hospital = list[i].hospital;
                    if (hospital!=null){
                        var yiyuan = hospital.hName;
                    }else {
                        yiyuan = "null";
                    }
                    //供货商
                    var ghs = list[i].ssurid;
                    var dididi = "<input type='checkbox' name='chec' class='itemSelect'>";

                    var $tr = '<tr>'+
                        '<td>'+id+'</td>'+
                        '<td>'+dididi+'</td>'+
                        '<td>'+bianhuao+'</td>'+
                        '<td>'+name+'</td>'+
                        '<td>'+state1+'</td>'+
                        '<td>'+yiyuan+'</td>'+
                        '<td>'+ghs+'</td>'+
                        '<td>'+'<a href="../../pages/02/drug010add.html?'+id+'">添加</a>'+'</td>'+
                        '</tr>'
                    $(".a").append($tr);
                }
            }
    })
}